<!DOCTYPE html>
<html>
  <head>
    <%block name='head'>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>开发框架|蓝鲸智云社区版</title>
        <meta name="description" content=""/>
        <meta name="author" content=""/>
        <link rel="shortcut icon" href="${STATIC_URL}favicon.ico" type="image/x-icon">
        <!-- bootstrap css -->
		    <link href="${STATIC_URL}assets/bootstrap-3.3.4/css/bootstrap.min.css" rel="stylesheet">
		    <!-- 禁止bootstrap 响应式 （app根据自身需求启用或禁止bootstrap响应式） -->
		    <link href="${STATIC_URL}assets/bootstrap-3.3.4/css/bootstrap_noresponsive.css" rel="stylesheet">
		    <!--自定义css-->
		    <link href="${STATIC_URL}css/base.css?v=${STATIC_VERSION}" rel="stylesheet">
        <!-- 这个是全局配置，如果需要在js中使用app_id和site_url,则这个javascript片段一定要保留 -->
        <script type="text/javascript">
	    	  var app_id = "${APP_ID}";
			    var site_url = "${SITE_URL}";	  // app的url前缀,在ajax调用的时候，应该加上该前缀
			    var static_url = "${STATIC_URL}"; // 静态资源前缀
	      </script>
        <style>
          /*如果你需要给你的应用固定高度和宽度，请在这里修改*/
    			body {min-width:1200px;}
    		</style>
    </%block>
  </head>

  <body>
  	<div>
	    <!--顶部导航 Start-->
		<nav class="navbar navbar-default king-horizontal-nav2" role="navigation">
		    <div class="container" style="width: 100%;">
		        <div class="navbar-header col-md-4 col-sm-4 col-xs-4 logo">
		            <a class="navbar-brand" href="${SITE_URL}">
		                蓝鲸智云开发框架
		            </a>
		        </div>
		        <div class="collapse navbar-collapse navbar-responsive-collapse" id="king-example-navbar-collapse-2">
		            <ul class="nav navbar-nav">
						<%
							home = dev_guide = contactus = ''
							relative_path = APP_PATH
							if relative_path == SITE_URL or relative_path.startswith(SITE_URL + "?"):
								home = 'king-navbar-active'
							elif relative_path.startswith(SITE_URL + "dev-guide/"):
								dev_guide = 'king-navbar-active'
							elif relative_path.startswith(SITE_URL + "contactus/"):
								contactus = 'king-navbar-active'
						%>
		                <li class="${home}"><a href="${SITE_URL}"><span>首页</span></a></li>
		                <li class="${dev_guide}"><a href="${SITE_URL}dev-guide/"><span>开发指引</span></a></li>
		                <li class="${contactus}"><a href="${SITE_URL}contactus/"><span>联系我们</span></a></li>
		            </ul>
		            <ul class="nav navbar-nav navbar-right">
						<a href="###" class="avatar">
			                <img src="${STATIC_URL}img/getheadimg.jpg" width="40" alt="Avatar" class="avatar-img">
                            % if request.user.is_superuser:
                                <i class="crown"></i>
                            % endif
                            <span>${request.user.username}</span>
			            </a>
						<!--退出登录-->
				        <a id="logout" href="${LOGOUT_URL}">注销</a>
		            </ul>
		        </div>
		    </div>
		</nav>
		<!--顶部导航 End-->
  	</div>
    <!-- 固定宽度居中 start -->
    <div class="container page_index">
    	<div class="">
        	<%block name='content'></%block>
    	</div>
    </div>
    <!-- 固定宽度表单居中 end -->
    <!-- 尾部声明 start -->
      <div class="foot" id="footer">
        <ul class="links ft">
            <li>
                <a href="###" id="contact_us" class="link">QQ咨询</a>
                <script src="//wp.qiye.qq.com/loader/4.0.0.js" charset="utf-8"></script>
                <script type="text/javascript">
                   try{
                      __WPA.create({
                          nameAccount:"800802001",
                          customEle: document.getElementById('contact_us')
                      })
                   }catch(err){}
                </script>
                | <a href="http://bbs.bk.tencent.com/forum.php" target="_blank" hotrep="hp.footer.feedback" class="link">蓝鲸论坛</a>
                | <a href="http://bk.tencent.com/" target="_blank" hotrep="hp.footer.feedback" class="link">蓝鲸官网</a>
                | <a href="${BK_PLAT_HOST}" target="_blank" hotrep="hp.footer.feedback" class="link">蓝鲸智云工作台</a>
            </li>
            <li><p class="copyright">Copyright © 2012-${NOW.year} Tencent BlueKing. All Rights Reserved.</p> </li>
          <li><p class="copyright">蓝鲸智云 版权所有</p> </li>
        </ul>
      </div>
      <!-- 尾部声明 end -->

    <!-- jquery js  -->
    <script src="${STATIC_URL}js/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script src="${STATIC_URL}js/jquery.json-2.3.min.js" type="text/javascript"></script>
    <!-- bootstrap js  -->
    <script src="${STATIC_URL}assets/bootstrap-3.3.4/js/bootstrap.min.js" type="text/javascript"></script>
    <!--配置js  勿删-->
    <script src="${STATIC_URL}js/settings.js?v=${STATIC_VERSION}" type="text/javascript"></script>
    ${self.body()}
  </body>
</html>
